# __init__使用
# class student:
#     def __init__(self,name,species):
#         self.name = name
#         self.species = species
#         print("student创建了一个对象")
# stud = student("魂天帝","魂族")
# print(stud.species)
# print(stud.name)
class student:
    def __init__(self,y,name,age,location):
        self.name = name
        self.age = age
        self.location = location
        self.y = y
        print(f"学生{self.y}信息录入完成，信息为[姓名：{self.name},年龄：{self.age},住址：{self.location}]")
for x in range(1,11):
    print(f"当前录入第{x}个同学的信息，总共需要录入10名同学的信息")
    y = x
    name = input("请输入学生姓名：")
    age = input("请输入学生年龄：")
    location = input("请输入学生住址：")
    student(y,name,age,location)
